package com.agv.web.async;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;

public class AsyncDispatchAction extends DispatchAction {

	public ActionForward registraParametro(ActionMapping mapping,
			ActionForm form, HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		String modulo = request.getParameter("modulo");
		String submodulo = request.getParameter("submodulo");
		String funcion = request.getParameter("funcion");
		request.getSession().setAttribute("modulo", modulo);
		request.getSession().setAttribute("submodulo", submodulo);
		request.getSession().setAttribute("funcion", funcion);

		request.getSession().removeAttribute("catCompleto");
		request.getSession().removeAttribute("catInsertado");
		request.getSession().removeAttribute("catalogoObj");
		request.getSession().removeAttribute("altaCatalogo");
		request.getSession().removeAttribute("actualizarCatalogo");
		request.getSession().removeAttribute("pasoActual");
		request.getSession().removeAttribute("totalPasos");
		request.getSession().removeAttribute("buscaCatalogo");
		request.getSession().removeAttribute("primerAcceso");
		
		return null;
	}

}
